package mao.innerclass;

/**
 * @author Totoro
 * @date 2020/7/7
 * @explain: 内部类的方法覆盖，必须从内部类中明确地声明。
 */
public class Extend extends InnerClass{

    class Inner{
        int bb = 8;

        String innerClassMethod(){
            return "Extend class method";
        }
    }
    public static void main(String[] args) {
        Extend extend = new Extend();
        Inner inner = extend.new Inner();
        System.out.println(inner.bb);
        System.out.println(inner.innerClassMethod());
    }
}